package com.mhkj.base.busiMode.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.mics.core.common.annotation.NotSupportLogicDelete;
import com.mics.core.common.validate.annotation.NotNull;
import com.mics.core.common.validate.annotation.Unique;
import com.mics.core.common.validate.annotation.Validate;
import com.mics.core.system.base.entity.BaseDomain;

/**
 * 业务系统模块
 * @author mics
 * @date 2018年7月9日
 * @version 1.0
 */
@Entity
@Table(name="t_busi_model")
@Validate
@NotSupportLogicDelete
public class BusiModel extends BaseDomain{

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = -6505526567312391704L;
	/**
	 * 业务系统
	 */
	@Column(name="busi_sys_id")
	private long busiSysId;
	
	/**
	 * 业务系统名称
	 */
	@Transient
	private String busiSysName;
	
	/**
	 * 阶段id
	 */
	@Column(name="phase_id")
	private long phaseId;
	/**
	 * 阶段名称
	 */
	@Transient
	private String phaseName;
	
	/**
	 * 模块名称
	 */
	@Column(name="name",length=48)
	@NotNull(message="模块名称不能为空！")
	@Unique
	private String name;
	
	/**
	 * 编码
	 */
	@Column(name="code",length=48)
	@NotNull(message="编码不能为空！")
	@Unique
	private String code;
	
	/**
	 * 创建人姓名
	 */
	@Transient
	private String createUserName;
	
	/**
	 * 备注
	 */
	@Lob
	@Column(name="remark")
	private String remark;
	
	
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public long getBusiSysId() {
		return busiSysId;
	}
	public void setBusiSysId(long busiSysId) {
		this.busiSysId = busiSysId;
	}
	public String getBusiSysName() {
		return busiSysName;
	}
	public void setBusiSysName(String busiSysName) {
		this.busiSysName = busiSysName;
	}
	public long getPhaseId() {
		return phaseId;
	}
	public void setPhaseId(long phaseId) {
		this.phaseId = phaseId;
	}
	public String getPhaseName() {
		return phaseName;
	}
	public void setPhaseName(String phaseName) {
		this.phaseName = phaseName;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getCreateUserName() {
		return createUserName;
	}
	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}

	
	
}
